package com.mlnx.work.service.iml;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mlnx.common.form.PageForm;
import com.mlnx.work.dao.mysql.RoleMapper;
import com.mlnx.work.dao.mysql.StatisticsMapper;
import com.mlnx.work.dao.mysql.TagMapper;
import com.mlnx.work.entity.Role;
import com.mlnx.work.pojo.form.NoneFilterForm;
import com.mlnx.work.pojo.vo.MemberScheduleStatisticsVO;
import com.mlnx.work.pojo.vo.ProjectScheduleStatisticsVO;
import com.mlnx.work.service.RoleService;
import com.mlnx.work.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Akrio
 * @Date: 2021-01-20 9:34
 */
@Service
public class StatisticsServiceIml extends BaseService<StatisticsMapper, NoneFilterForm> implements StatisticsService {
    @Autowired
    @Override
    public void setBaseMapper(StatisticsMapper baseMapper) {
        super.setBaseMapper(baseMapper);
    }

    @Override
    public Page<ProjectScheduleStatisticsVO> selectProject(PageForm pageForm) {
        return baseMapper.selectProject(new Page(pageForm.getCurrent().longValue(), pageForm.getSize().longValue()));
    }

    @Override
    public Page<MemberScheduleStatisticsVO> selectMember(PageForm pageForm) {
        return baseMapper.selectMember(new Page(pageForm.getCurrent().longValue(), pageForm.getSize().longValue()));
    }
}
